<template>
  <div id="app">
   <h1 ref="title">ref属性测试</h1>
   <button @click="testRef">测试ref</button>

       <Student stuName='李彤康' :age='22'/><br>
       <School></School>
  </div>
</template>

<script>
import Student from "./components/Student.vue"
import School from "./components/School.vue"
export default {
  name: 'App',
  components: {
  Student,
  School
  },
  methods:{
    testRef(){
     console.log(this.$refs.title);
    },
   
  }
}
</script>

<style>

</style>
